﻿using System;
using System.Threading.Tasks;
using AspectCore.DynamicProxy;

namespace AspectCoreTest1
{
    class CustomInterceptorAttribute : AbstractInterceptorAttribute
    {
        public async override Task Invoke(AspectContext context, AspectDelegate next)
        {
            Console.WriteLine("拦截之前");

            await next(context);

            Console.WriteLine("拦截之后");
        }
    }
}
